package scala.scalaClass.basic

class Piza1() {
   var pizaSize = 1
   var pizaType = "Type1"
   
   def this(pizaSize:Int){
      this()
      this.pizaType = Piza.DEFAULT_TYPE
   }
   
   def this(pizaType: String){
      this()
      this.pizaSize = Piza.DEFAULT_SIZE
   }
   
   override def toString() = s"$pizaType has size : $pizaSize"
}

object Piza{
   val DEFAULT_SIZE = 12
   val DEFAULT_TYPE = "DEFAULT TYPE"
}